package com.celesea.configuration.security.bean;


import java.io.Serializable;

public class Brand implements Serializable {

    private long id;

    private String name;

    private String address;

    private int version;

    /**
     * 品牌权限集合
     **/
    private PermissionCollection permission;

    /**
     * 移动门店版本
     **/
    private int portalVersion;

    public Brand() {
        super();
    }

    public Brand(long id, String name, String address, int version) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.version = version;
    }

    public int getPortalVersion() {
        return portalVersion;
    }

    public void setPortalVersion(int portalVersion) {
        this.portalVersion = portalVersion;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public PermissionCollection getPermission() {
        return permission;
    }

    public void setPermission(PermissionCollection permission) {
        this.permission = permission;
    }

    @Override
    public String toString() {
        return "Brand{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", version=" + version +
                ", portalVersion=" + portalVersion +
                '}';
    }
}
